package com.jackrain.nea.wms.lts;

import com.github.ltsopensource.core.commons.utils.CollectionUtils;
import com.github.ltsopensource.core.domain.JobResult;
import com.github.ltsopensource.jobclient.support.JobCompletedHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;


public class JobCompletedHandlerImpl implements JobCompletedHandler {

    private Logger logger = LoggerFactory.getLogger(JobCompletedHandlerImpl.class.getName());

    @Override
    public void onComplete(List<JobResult> jobResults) {
        if (CollectionUtils.isNotEmpty(jobResults)) {
            for (JobResult jobResult : jobResults) {
                logger.info("onComplete success->" + jobResult);
            }
        }
    }
}
